home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / Metafont / Inputs / ec / exrleast.mf < prev    next >
Text File  |  1997-03-16  |  52KB  |  1,131 lines

  1. % exrleast.mf
  2. %
  3. % (c) Copyright 1995, 1996, 1997 J"org Knappen
  4. % (c) Copyright 1990, 1992 Norbert Schwarz
  5. %
  6. % This file is part of ecfonts version 1.0
  7. %
  8. % Please read the files 00readme.txt, 00inst.txt, 00error.txt, and
  9. % copyrite.txt for further information
  10. %
  11. % You find some documentation in ecdoc.tex (needs LaTeX2e)
  12. %
  13. % Content:
  14. %
  15. %  accented lowercase letters ("eastern part")
  16. %
  17. %   oct"236", oct"240" .. oct"274"
  18. %
  19. %       oct"236"    d  with bar
  20. %
  21. %       oct"240"    a  with breve
  22. %       oct"241"    a  with ogonek
  23. %       oct"242"    c  with acute
  24. %       oct"243"    c  with hacek
  25. %       oct"244"    d  with comma
  26. %       oct"245"    e  with hacek
  27. %       oct"246"    e  with ogonek
  28. %       oct"247"    g  with breve
  29. %
  30. %       oct"250"    l  with acute
  31. %       oct"251"    l  with komma
  32. %       oct"252"    l  with (polnisches L)
  33. %       oct"253"    n  with acute
  34. %       oct"254"    n  with hacek
  35. %       oct"255"    the letter eng
  36. %       oct"256"    o  with ungarian umlauts
  37. %       oct"257"    r  with acute
  38. %
  39. %       oct"260"    r  with hacek
  40. %       oct"261"    s  with acute
  41. %       oct"262"    s  with hacek
  42. %       oct"263"    s  with cedille
  43. %       oct"264"    t  with comma
  44. %       oct"265"    t  with cedille
  45. %       oct"266"    u  with hungarian umlauts
  46. %       oct"267"    u  with circ
  47. %
  48. %       oct"270"    y with  umlauts
  49. %       oct"271"    z with  acute
  50. %       oct"272"    z with  hacek
  51. %       oct"273"    z with  dot
  52. %       oct"274"    ij
  53.  
  54. version_check(1,0);  % |version_check| was introduced in dc1.3
  55.  
  56. ecchar "The letter bar d";
  57. beginchar(oct"236",10u#+serif_fit#,asc_height#,0);
  58. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  59. adjust_fit(0,serif_fit#);
  60. pickup tiny.nib; pos1(stem',0); pos2(stem,0);
  61. pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
  62. rt x1r=hround(w-2.5u+.5stem'); top y1=h;
  63. numeric edge; edge=lft x2l;
  64. pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
  65. pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
  66. lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
  67. y3=1/8[bar_height,x_height];
  68. x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi;
  69. lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi ;
  70. x6l=x4l-.2u; bot y6r=-oo;
  71. x7=x3; y7=min(y3,y6+y4-y3+.6vair);
  72. (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
  73. (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
  74. filldraw stroke z3e{up}...pulled_arc.e(4,5)
  75.  & pulled_arc.e(5,6)...{up}z7e; % bowl
  76. y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
  77. pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
  78. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  79. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  80.  sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi  % lower serif
  81. %
  82.   pos8(bar,90); pos9(bar,90);
  83.   x8=.5[x4,x5];
  84.   if serifs: x9=x2r+jut; else: x9=w; fi
  85.   if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair];
  86.   else: y8=y9=.5[x_height,asc_height-serif_drop]; fi
  87.   filldraw stroke z8e--z9e;
  88. penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
  89.  
  90.  
  91.  
  92. %%%%%%
  93.  
  94.  
  95. ecchar "The letter a with breve";
  96. beginchar(oct"240",9u#,x_height#+acc_height#,0);
  97. bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh);
  98. italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#;
  99. adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi);
  100. pickup fine.nib; top y3r=x_height+vround 1.5oo;
  101. if serifs: pos1(flare,180); pos2(hair,180);
  102.  pos3(vair,90);  lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u;
  103.  y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare);
  104.  bulb(3,2,1);  % bulb
  105. else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
  106.  pos3(1/8[vair,thin_join],90);
  107.  x3=.5w-.2u; top y1r=vround .82[bh,top y3r];
  108.  filldraw stroke term.e(3,1,left,.9,4); fi  % terminal
  109. pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height];
  110. pos5(stem,0); x5=x4; y5=max(.55bh,2vair);
  111. filldraw stroke super_arc.e(3,4)&z4e..z5e;  % arc and stem
  112. pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh;
  113. pos7(hround(curve-2stem_corr),180);
  114. lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r];
  115. pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo;
  116. pos9(thin_join,360); z9l=z5l;
  117. (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u);
  118. {{interim superness:=more_super;
  119.  filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
  120. if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr);
  121.  if hair#+.5stem#>1.5u#: pickup tiny.nib;
  122.   pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  123.   pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh];
  124.   pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0;
  125.   pos12(shaved_stem,0); x11=x12; top y12=slab+eps;
  126.   filldraw z5'l---z10l...z11l{right}--z11r
  127.    --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle;  % foot
  128.  else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  129.   pos10(shaved_stem,0); x10=x5'; y10=1/3bh;
  130.   pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo;
  131.   pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair);
  132.   pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12);
  133.   (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10);
  134.   filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi  % hook
  135. else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr);
  136.  pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  137.  pos10(shaved_stem,0); x10=x5'; bot y10=0;
  138.  filldraw stroke z5'e--z10e; fi  % base of stem
  139. % the accent
  140. lowercase_breve(.5w,0,14,15,16);
  141. penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); endchar;
  142.  
  143. ecchar "The letter a with ogonek"; % from pl_ml (plfonts)
  144. beginchar(oct"241",9u#,x_height#,the_ogonek_depth#);
  145.  bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh);
  146.  italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#;
  147.  adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi);
  148.  pickup fine.nib; top y3r=h+vround 1.5oo;
  149.  if serifs: pos1(flare,180); pos2(hair,180);
  150.   pos3(vair,90);  lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u;
  151.   y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare);
  152.   bulb(3,2,1);  % bulb
  153.  else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
  154.   pos3(1/8[vair,thin_join],90);
  155.   x3=.5w-.2u; top y1r=vround .82[bh,top y3r];
  156.   filldraw stroke term.e(3,1,left,.9,4); fi  % terminal
  157.  pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h];
  158.  pos5(stem,0); x5=x4; y5=max(.55bh,2vair);
  159.  filldraw stroke super_arc.e(3,4)&z4e..z5e;  % arc and stem
  160.  pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh;
  161.  pos7(hround(curve-2stem_corr),180);
  162.  lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r];
  163.  pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo;
  164.  pos9(thin_join,360); z9l=z5l;
  165.  (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u);
  166.  {{interim superness:=more_super;
  167.   filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
  168.  if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr);
  169.   if is_bold: pickup tiny.nib;
  170.    pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  171.    pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh];
  172.    pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0;
  173.    pos12(shaved_stem,0); x11=x12; top y12=slab+eps;
  174.    filldraw z5'l---z10l...z11l{right}--z11r
  175.     --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle;  % foot
  176.   else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  177.    pos10(shaved_stem,0); x10=x5'; y10=1/3bh;
  178.    pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo;
  179.    pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair);
  180.    pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12);
  181.    (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10);
  182.    filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi  % hook
  183.  else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr);
  184.   pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  185.   pos10(shaved_stem,0); x10=x5'; bot y10=0;
  186.   filldraw stroke z5'e--z10e; % base of stem
  187.  fi;
  188.  penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13);
  189.  if serifs: path p.l; p.l=z5'l---z10l...z11l{right}; fi
  190.  def the_pen=
  191.   if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi
  192.  enddef;
  193.  ogonek_breadth=if serifs and is_bold: slab else: xvair fi;
  194.  ogonek_pos=if serifs: (point if is_bold: 1.75 of p.l) else: 1.85 of p.l)+
  195.   .5the_pen*up fi\\ else: (x10l,.5the_pen) fi;
  196.  put_ogonek(the_pen);
  197. endchar;
  198.  
  199. ecchar "The letter c with acute"; % from pl_ml (plfonts) 
  200. beginchar_twice(oct"242",8u#,x_height#,0);
  201.  italcorr x_height#*slant-.2u#;
  202.  adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
  203.  pickup fine.nib; pos2(vair',90); pos4(vair',270);
  204.  x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo;
  205.  pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h;
  206.  if serifs: pos1(hair,0); pos0(flare,0);
  207.   y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare);
  208.   rt x1r=hround(w-.7u); bulb(2,1,0);  % bulb
  209.   pos5(hair,0); rt x5r=hround(w-.5u);
  210.   y5=max(good.y(.5bar_height-.9),y4l+vair');
  211.   (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
  212.    filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  213.    & pulled_super_arc.e(3,4)(.5superpull)
  214.    ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e;  % arc and lower terminal
  215.  else: pos1(4/7[vair',flare],80);
  216.   rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
  217.   filldraw stroke term.e(2,1,right,.8,4);  % upper terminal
  218.   pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
  219.   y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  220.   forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
  221.    if angle direction 1 of p.e>75:
  222.     p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
  223.   filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  224.    & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi  % arc and lower terminal
  225.  penlabels(0,1,2,3,4,5);
  226.  hpos_corr=-.25u; put_accent;
  227. repeat_once;
  228. endchar;
  229.  
  230. ecchar "The letter c with hachek"; % from cshachel.mf (csfonts)
  231. beginchar(oct"243",8u#,lc_hachek_height#,0);
  232. italcorr x_height#*slant-.2u#;
  233. adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
  234. pickup fine.nib; pos2(vair',90); pos4(vair',270);
  235. x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo;
  236. pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height;
  237. if serifs: pos1(hair,0); pos0(flare,0);
  238.  y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare);
  239.  rt x1r=hround(w-.7u); bulb(2,1,0);  % bulb
  240.  pos5(hair,0); rt x5r=hround(w-.5u);
  241.  y5=max(good.y(.5bar_height-.9),y4l+vair');
  242.  (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
  243.  filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  244.   & pulled_super_arc.e(3,4)(.5superpull)
  245.   ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e;  % arc and lower terminal
  246. else: pos1(4/7[vair',flare],80);
  247.  rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
  248.  filldraw stroke term.e(2,1,right,.8,4);  % upper terminal
  249.  pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
  250.  y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  251.  forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
  252.   if angle direction 1 of p.e>75:
  253.    p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
  254.  filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  255.   & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi  % arc and lower terminal
  256. penlabels(0,1,2,3,4,5);
  257. lc_hachek_accent(if serifs: 0.5[0.5[x3l,x3],x0r] else: x2 fi);
  258. endchar;   %% changed from ..[x3r,x3]..
  259.  
  260.  
  261. ecchar "The letter d with hachek"; % from csotherl.mf (csfonts)
  262. beginchar(oct"244",10u#+serif_fit#,lc_acute_height#,0);
  263. italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#;
  264. adjust_fit(0, if monospace: 2u# else: dot_size#+0.25u# fi);
  265. pickup tiny.nib; pos1(stem',0); pos2(stem,0);
  266. pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
  267. rt x1r=hround(w-2.5u+.5stem'); top y1=h;
  268. numeric edge; edge=lft x2l;
  269. pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
  270. pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
  271. lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
  272. y3=1/8[bar_height,x_height];
  273. x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo;
  274. lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height;
  275. x6l=x4l-.2u; bot y6r=-oo;
  276. x7=x3; y7=min(y3,y6+y4-y3+.6vair);
  277. (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
  278. (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
  279. filldraw stroke z3e{up}...pulled_arc.e(4,5)
  280.  & pulled_arc.e(5,6)...{up}z7e; % bowl
  281. y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
  282. pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
  283. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  284. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  285.  sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi  % lower serif
  286. penlabels(0,1,2,3,4,5,6,7); 
  287. dtl_hachek(x0r+u+.5pdot_diam)(y1);
  288. endchar;
  289.  
  290. ecchar "The letter e with hachek"; % from cshachel.mf (csfonts)
  291. beginchar(oct"245",7.25u#+max(.75u#,.5curve#),lc_hachek_height#,0);
  292. italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
  293. adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
  294. numeric left_curve,right_curve;
  295. left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi;
  296. if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
  297. if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
  298. pickup tiny.nib; pos1(right_curve,0);
  299. pos2(vair,90); pos3(left_curve,180);
  300. y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1;
  301. rt x1r=hround min(w-.5u,w-u+.5right_curve);
  302. lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
  303. {{interim superness:=more_super;
  304.  filldraw stroke super_arc.e(1,2)}};  % right bowl
  305. y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
  306. if serifs: pos4(vair',270); pos5(hair,360);
  307.  y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
  308.  (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
  309.  filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
  310.   ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
  311. else: pos4(vair,270);
  312.  filldraw stroke super_arc.e(2,3) & super_arc.e(3,4);  % left bowl and arc
  313.  pickup fine.nib; pos4'(vair,270); z4=z4';
  314.  pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
  315.  y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  316.  filldraw stroke term.e(4',5,right,1,4); fi  % terminal
  317. path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
  318. y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
  319. forsuffixes $=l,r:
  320.  x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
  321. fill stroke z0e--z1'e;  % crossbar
  322. penlabels(0,1,2,3,4,5);
  323. lc_hachek_accent(x2);
  324. endchar;
  325.  
  326.  
  327. ecchar "The letter e with ogonek"; % from pl_ml (plfonts)
  328. beginchar(oct"246",7.25u#+max(.75u#,.5curve#),x_height#,the_ogonek_depth#);
  329.  italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
  330.  adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
  331.  numeric left_curve,right_curve;
  332.  left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi;
  333.  if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
  334.  if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
  335.  pickup tiny.nib; pos1(right_curve,0);
  336.  pos2(vair,90); pos3(left_curve,180);
  337.  y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1;
  338.  rt x1r=hround min(w-.5u,w-u+.5right_curve);
  339.  lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
  340.  {{interim superness:=more_super;
  341.   filldraw stroke super_arc.e(1,2)}};  % right bowl
  342.  y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
  343.  if serifs: pos4(vair',270); pos5(hair,360);
  344.   y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
  345.   (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
  346.   filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
  347.    ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
  348.  else: pos4(vair,270);
  349.   filldraw stroke super_arc.e(2,3) & super_arc.e(3,4);  % left bowl and arc
  350.   pickup fine.nib; pos4'(vair,270); z4=z4';
  351.   pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
  352.   y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  353.   filldraw stroke term.e(4',5,right,1,4); fi  % terminal
  354.  path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
  355.  y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
  356.  forsuffixes $=l,r:
  357.   x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
  358.  fill stroke z0e--z1'e;  % crossbar
  359.  penlabels(0,1,2,3,4,5);
  360.  path p.r;
  361.  p.r=if serifs: pulled_arc.r(3,4)...{x5-x4,5(y5-y4)}z5r
  362.   else: term.r(4',5,right,1,4) fi;
  363.  def the_pen=
  364.   if known ogonek_pen: ogonek_pen elseif serifs: tiny else: fine fi
  365.  enddef;
  366.  numeric tt; % the time...
  367.  tt=if serifs: if hefty: 2.6 else: 2.5 fi else: % sansserif
  368.   if is_bold: .6 else: .8 fi\\ fi;
  369.  join_angle=angle((direction tt of p.r) rotated 180);
  370.  ogonek_breadth=if serifs and is_bold: slab else: xvair fi;
  371.  ogonek_pos=(point tt of p.r)+.5(the_pen-if serifs: tiny else: fine fi)*
  372.   unitvector((direction tt of p.r) rotated 90);
  373.  put_ogonek(the_pen);
  374. endchar;
  375.  
  376. iff not variant_g: ecchar "The letter g with breve";
  377. beginchar(oct"247",9u#,x_height#+acc_height#,desc_depth#);
  378. italcorr x_height#*slant+.25u#;
  379. adjust_fit(0,0);
  380. numeric light_vair,light_curve,loop_top,loop_side;
  381. light_vair=Vround(.5[thin_join,vair]+vair_corr);
  382. light_curve=max(fine.breadth,hround(curve-3stem_corr));
  383. loop_top=Vround .77[vair,fudged.stem];
  384. loop_side=hround .64[vair,fudged.stem];
  385. pickup fine.nib; pos1(light_vair,90);
  386. pos2(light_curve,180); pos3(light_vair,270);
  387. pos4(light_curve,360); pos11(loop_top,90);
  388. y11r=good.y(y11r+.15bar_height-y11); x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3];
  389. lft x2r=hround(1.75u-.5light_curve); rt x4r=hround(w-2.75u+.5light_curve);
  390. top y1r=x_height+oo; y3r=good.y(y3r+.27[top y11r,bot y1l]-y3);
  391. filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3);  % left half of bowl
  392. filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1);  % right half of bowl
  393. x0=superness[x1r,x4r]; y0=superness[y4r,y1r];  % NE point on the super bowl
  394. x8'=superness[x3r,x2r]; y8'=superness[y2r,y3r];  % SW point on the super bowl
  395. x8''=superness[x3,x2]; y8''=superness[y2,y3];
  396. pos0(thin_join,angle(z0-z8')+90);
  397. pos8(thin_join,angle(z0-z8')-90); z8=.618[z8',z8''];
  398. if serifs: pos5(vair,90);
  399.  pos6(hair,0); pos7(.5[hair,flare],0); x5=.75[x0,x6]; top y5r=x_height+o;
  400.  rt x6r=hround(w-.25u); y6+(.5[hair,flare])/2=.95[bar_height,x_height]+oo;
  401.  filldraw stroke z0e..{right}z5e; bulb(5,6,7);  % ear
  402. else: pos5(vair',100); top y5r=x_height+oo;
  403.  rt x5l=hround(w-.25u); y5l:=good.y y5l;
  404.  filldraw z0l{z5-z0}..z5l--z5r{left}..{curl 1}z0r--cycle; fi  % ear
  405. pos10(loop_top,90); x10=x8+.75u; y10=y11;
  406. pos12(loop_side,0); pos13(light_vair,-90);
  407. pos14(loop_side,-180); pos10'(.5[thin_join,vair],-270);
  408. rt x12r=hround max(w-1.25u+.5loop_side,w-.5u); y12=y14=.5[y11,y13];
  409. x11=x13=max(.5w,x10+eps); bot y13r=-d-oo-1; x14=w-x12; z10'l=z10l;
  410. filldraw stroke z8e{z8-z0}..z10e---z11e;  % link
  411. filldraw stroke {{interim superness:=hein_super; super_arc.e(11,12)}}
  412.  & super_arc.e(12,13) & super_arc.e(13,14) & super_arc.e(14,10');  % loop
  413. % the accent
  414. lowercase_breve(.5w,0,15,16,17);
  415. penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13,14); labels(8',8''); endchar;
  416.  
  417. iff variant_g: ecchar "Variant letter g with breve";
  418. beginchar(oct"247",10u#+serif_fit#,
  419.     max(x_height#+acc_height#,min(asc_height#,2x_height#)),desc_depth#);
  420. italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi;
  421. adjust_fit(0,serif_fit# if serifs: -.5u# fi);
  422. pickup tiny.nib; pos1(stem',0); pos2(stem,0);
  423. pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
  424. rt x1r=hround(w-2.5u+.5stem');
  425. numeric edge; edge=lft x2l;
  426. path edge_path; edge_path=(edge,x_height)--(edge,0);
  427. pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
  428. pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
  429. lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height;
  430. x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo;
  431. lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height;
  432. x6l=x4l-.2u; bot y6r=vround 1/3vair;
  433. lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair);
  434. (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
  435. (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
  436. filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5)
  437.  &super_arc.e(5,6)&z6e{right}...{up}z7e;  % bowl
  438. y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l));
  439. y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l));
  440. pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi;
  441. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  442. pickup crisp.nib;
  443. pos8(hround(hair-stem_corr),0); pos7'(stem',0);
  444. z7'=z1; x8r=x7'r; top y8=x_height+oo;
  445. filldraw stroke z7'e--z8e;  % point
  446. if serifs: pickup tiny.nib;
  447.  pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1;
  448.  pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare;
  449.  pos11(flare,-180); z11r=z10r;
  450.  bulb(9,10,11); filldraw stroke super_arc.e(2,9);  % tail
  451. else: pickup fine.nib; pos2'(stem,0); z2'=z2;
  452.  z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0);
  453.  pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1;
  454.  pos10(.5[vair,flare],-90); lft x10=hround 1.25u;
  455.  y10r=good.y -5/6d; y10l:=good.y y10l;
  456.  filldraw stroke z2'e..z2''e&super_arc.e(2'',9)
  457.   & term.e(9,10,left,.9,4); fi  % tail
  458. % the accent
  459. lowercase_breve(.5w,0,12,13,14);
  460. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
  461.  
  462. ecchar "The letter l with acute"; % jk
  463. beginchar_twice(oct"250",5u#,asc_height#,0); 
  464. l_width#:=5u#+2serif_fit#;
  465. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  466. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  467. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  468. if odd(w-stem'): change_width; fi
  469. lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0;
  470. filldraw stroke z1e--z2e;  % stem
  471. if serifs or monospace:
  472.  sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % upper serif
  473. fi
  474. if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi  % lower serif
  475. put_accent;
  476. repeat_once;
  477. penlabels(1,2); endchar;
  478.  
  479. ecchar "The letter l with hachek"; % from csotherl.mf (csfonts)
  480. beginchar(oct"251",5u#,lc_acute_height#,0); l_width#:=5u#+2serif_fit#;
  481. italcorr lc_acute_height#*slant-serif_fit#+.5stem#-2u#;
  482. adjust_fit(serif_fit#+stem_shift#,
  483.   if monospace: 0 else: dot_size#+0.25u# fi);
  484. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  485. if odd(w-stem'): change_width; fi
  486. lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0;
  487. filldraw stroke z1e--z2e;  % stem
  488. if serifs or monospace:
  489.  sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % upper serif
  490. fi
  491. if serifs:
  492.  dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi  % lower serif
  493. penlabels(1,2);
  494. dtl_hachek(x1r+u+.5pdot_diam)(y1);
  495. endchar;
  496.  
  497. ecchar "The letter crossed l"; % from pl_ml (plfonts)
  498. beginchar_twice(oct"252",5u#,asc_height#,0);
  499.  italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  500.  charwd_:=charwd;
  501.  adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  502.  pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  503.  if odd(w-stem'): change_width; fi
  504.  lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0;
  505.  filldraw stroke z1e--z2e; % stem
  506.  if serifs or monospace:
  507.   sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif
  508.  fi
  509.  if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif
  510.  penlabels(1,2);
  511.  numeric unbalance;
  512.  unbalance=if monospace: 1 else: 1.1 fi;
  513.  if not monospace:
  514.   numeric cross_fit#; 
  515.   cross_fit#=serif_fit#+if not serifs: if is_bold: 1 else: .75 fi\\ else:
  516.    .5 fi\\ u#;
  517.   charwd:=charwd_;
  518.   adjust_fit(cross_fit#+stem_shift#,unbalance*cross_fit#-stem_shift#);
  519.  fi
  520.  numeric l_jut;
  521. % some funny fonts have an extremally small |jut|:
  522.  l_jut=.5stem+if serifs: max(limit_dist,if hefty: .8 fi\\ jut) else: 1.7u fi;
  523.  put_cross(l_jut,unbalance*l_jut);
  524. repeat_once;
  525. endchar;
  526.  
  527. ecchar "The letter n with acute"; % from pl_ml (plfonts)
  528. beginchar_twice(oct"253",10u#,x_height#,0);
  529.  italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
  530.  adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  531.  pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  532.  numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
  533.  pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
  534.  lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
  535.  top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
  536.  filldraw stroke z1'e--z2'e;  % left stem
  537.  h_stroke(2,a,3,4);  % arch and right stem
  538.  if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
  539.   numeric inner_jut; pickup tiny.nib;
  540.   if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
  541.   else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
  542.   dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
  543.   dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif
  544.  hpos_corr=-.5u; put_accent;
  545. repeat_once;
  546. penlabels(1,2,3,4); endchar;
  547.  
  548. ecchar "The letter n with hachek"; % from cshachel.mf (csfonts)
  549. beginchar(oct"254",10u#,lc_hachek_height#,0);
  550. italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
  551. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  552. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  553. numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
  554. pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
  555. lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
  556. top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
  557. filldraw stroke z1'e--z2'e;  % left stem
  558. h_stroke(2,a,3,4);  % arch and right stem
  559. if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
  560.  numeric inner_jut; pickup tiny.nib;
  561.  if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
  562.  else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
  563.  dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
  564.  dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif
  565. penlabels(1,2,3,4); 
  566. lc_hachek_accent(1/2[x1r,x.a1]);
  567. endchar;
  568.  
  569.  
  570. ecchar "The letter eng";
  571. beginchar(oct"255",10u#,x_height#,desc_depth#);
  572. italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
  573. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  574. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  575. numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
  576. pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
  577. lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
  578. top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
  579. filldraw stroke z1'e--z2'e;  % left stem
  580. h_stroke(2,a,3,4);  % arch and right stem
  581. if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
  582.  numeric inner_jut; pickup tiny.nib;
  583.  if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
  584.  else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
  585.  dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
  586. % j stroke
  587.  pickup tiny.nib; pos7(vair,-90); pos8(hair,-180); pos9(flare,-180);
  588.  x7=.5[x4,x8r]; bot y7r=-d-oo; y8-.5flare=-.88d;
  589.  if monospace:
  590.  lft x8r=hround(x3r-3u+0.5stem);
  591.  else:
  592.  z8r=z9r; rt x9l=hround(x3r-3u+0.5stem); % floor .75u
  593.  fi;
  594.  (x,y7r)=whatever[z7l,z4l]; x7r:=max(x,.5[x8r,x7]);
  595.  filldraw stroke z4e{down}...z7e{left};  bulb(7,8,9); % arc and bulb
  596. else: pickup fine.nib; pos4'(stem',0); z4'=z4;
  597.  pos8(.2[vair,stem'],-90); pos9(vair,-90);
  598.  lft x9r=hround -.75u+x3r-3u-0.5stem;
  599.  bot y9r=vround 5/6(-d-oo);
  600.  (x,y9l)=whatever[z9r,z3];
  601.  x9l:=x;
  602.  z7r=z4'r;
  603.  (x4'l,y7l)=whatever[z9l,z7r]; x7l=x4'l; y7=y7r;
  604.  x8r=.5[x9r,x7r]; x8l:=.5[x9l,x7l]; bot y8r=-d-oo;
  605.  filldraw stroke z4'e..{down}z7e
  606.  & super_arc.e(7,8)
  607.  & z8e{left}..z9e;
  608. fi  % arc and terminal
  609. penlabels(1,2,3,4,5,6,7,8,9); endchar;
  610.  
  611. ecchar "The letter o with double acute";
  612. beginchar_twice(oct"256",9u#,x_height#+acc_height#,0);
  613. italcorr .7x_height#*slant;
  614. adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
  615. penpos1(vair,90); penpos3(vair',-90);
  616. penpos2(curve,180); penpos4(curve,0);
  617. x2r=hround max(.5u,1.25u-.5curve);
  618. x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo;
  619. y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height;
  620. penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
  621.  & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle;  % bowl
  622. if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent;
  623. else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi
  624. repeat_once;
  625. penlabels(1,2,3,4,5,6,7,8); endchar;
  626.  
  627.  
  628. ecchar "The letter r with acute";
  629. numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#];
  630. beginchar_twice(oct"257",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,
  631.    x_height#+acc_height#,0);
  632. italcorr x_height#*slant if not serifs: +.25u# fi;
  633. adjust_fit(serif_fit#,0);
  634. define_whole_blacker_pixels(r_flare); % must come after |beginchar_twice|
  635. pickup fine.nib; top y4r=x_height+oo;
  636. if serifs: pos4(vair,90); pos5(hair,0);
  637.  x4=w-max(1.75u,.25u+r_flare);
  638.  rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo;
  639.  pos6(r_flare,0); bulb(4,5,6);  % bulb
  640. else: pos4(r_flare,90); rt x4=hround(w-.25u); fi
  641. pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height;
  642. filldraw stroke z3e{up}...{right}z4e;  % arc
  643. pickup tiny.nib; pos0(stem',0); pos2(stem',0);
  644. pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop);
  645. pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l;
  646. lft x1l=hround(2.5u-.5stem'); bot y2=0;
  647. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  648. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  649.  dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi  % lower serif
  650. % the accent
  651. hpos_corr=-.25u; put_accent;
  652. repeat_once;
  653. penlabels(1,2,3,4,5,6,7,8); endchar;
  654.  
  655.  
  656. ecchar "The letter r with hachek"; % from cshachel.mf (csfonts)
  657. numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#];
  658. define_whole_blacker_pixels(r_flare);
  659. beginchar(oct"260",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,
  660.    lc_hachek_height#,0);
  661. italcorr x_height#*slant if not serifs: +.25u# fi;
  662. adjust_fit(serif_fit#,0);
  663. pickup fine.nib; top y4r=x_height+oo;
  664. if serifs: pos4(vair,90); pos5(hair,0);
  665.  x4=w-max(1.75u,.25u+r_flare);
  666.  rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo;
  667.  pos6(r_flare,0); bulb(4,5,6);  % bulb
  668. else: pos4(r_flare,90); rt x4=hround(w-.25u); fi
  669. pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height;
  670. filldraw stroke z3e{up}...{right}z4e;  % arc
  671. pickup tiny.nib; pos0(stem',0); pos2(stem',0);
  672. pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop);
  673. pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l;
  674. lft x1l=hround(2.5u-.5stem'); bot y2=0;
  675. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  676. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  677.  dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi  % lower serif
  678. penlabels(1,2,3,4,5,6);
  679. lc_hachek_accent(0.5[x1,x4]);
  680. endchar;
  681.  
  682. ecchar "The letter s with acute"; % from pl_ml (plfonts)
  683. beginchar_twice(oct"261",7.1u#,x_height#,0);
  684.  italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
  685.  adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
  686.  numeric theta; theta=90-angle(40u,h); slope:=-h/40u;  % angle at middle
  687.  numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
  688.  numeric ess'; ess'=max(fine.breadth,ess);
  689.  pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
  690.  pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
  691.  top y2l=h+vround 1.5oo; bot y7r=-oo;
  692.  y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
  693.  lft x3l=hround .6u; rt x6r=hround(w-.6u);
  694.  x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  695.  ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  696.  ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  697.  interim superness:=more_super;
  698.  filldraw stroke super_arc.e(2,3) & z3e{down}
  699.   ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  700.  if serifs: pos1(hair,180); pos8(hair,180);
  701.   rt x1l=hround(w-1.05u); lft x8r=hround .6u;
  702.   bot y1=min(bot y2r,vround 1/5[top y5r,h]);
  703.   top y8=max(top y7l,vround 5/6 bot y4l);
  704.   filldraw stroke z1e{up}....{left}z2e;  % upper arc
  705.   filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e;  % lower arc
  706.   path upper_arc, lower_arc;
  707.   upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
  708.   pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  709.   x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  710.   x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  711.   numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  712.   filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  713.   t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  714.   filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  715.  else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
  716.   x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
  717.   top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo;
  718.   filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  719.   filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  720.  penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10);
  721.  hpos_corr=-.5u; put_accent;
  722. repeat_once;
  723. endchar;
  724.  
  725. ecchar "The letter s with hachek"; % from cshachel.mf (csfonts)
  726. beginchar(oct"262",7.1u#,lc_hachek_height#,0);
  727. italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
  728. adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
  729. numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u;  % angle at middle
  730. numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
  731. numeric ess'; ess'=max(fine.breadth,ess);
  732. pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
  733. pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
  734. top y2l=x_height+vround 1.5oo; bot y7r=-oo;
  735. y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
  736. lft x3l=hround .6u; rt x6r=hround(w-.6u);
  737. x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  738. ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  739. ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  740. interim superness:=more_super;
  741. filldraw stroke super_arc.e(2,3) & z3e{down}
  742.  ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  743. if serifs: pos1(hair,180); pos8(hair,180);
  744.  rt x1l=hround(w-1.05u); lft x8r=hround .6u;
  745.  bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
  746.  top y8=max(top y7l,vround 5/6 bot y4l);
  747.  filldraw stroke z1e{up}....{left}z2e;  % upper arc
  748.  filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e;  % lower arc
  749.  path upper_arc, lower_arc;
  750.  upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
  751.  pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  752.  x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  753.  x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  754.  numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  755.  filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  756.  t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  757.  filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  758. else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
  759.  x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
  760.  top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
  761.  filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  762.  filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  763. penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10);
  764. lc_hachek_accent(0.5[x3l,x1l]);
  765. endchar;
  766.  
  767. ecchar "The letter cedilla s";
  768. beginchar(oct"263",7.1u#,x_height#,0.875desc_depth#);
  769. italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
  770. adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
  771. numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u;  % angle at middle
  772. numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
  773. numeric ess'; ess'=max(fine.breadth,ess);
  774. pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
  775. pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
  776. top y2l=x_height+vround 1.5oo; bot y7r=-oo;
  777. y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
  778. lft x3l=hround .6u; rt x6r=hround(w-.6u);
  779. x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  780. ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  781. ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  782. interim superness:=more_super;
  783. filldraw stroke super_arc.e(2,3) & z3e{down}
  784.  ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  785. if serifs: pos1(hair,180); pos8(hair,180);
  786.  rt x1l=hround(w-1.05u); lft x8r=hround .6u;
  787.  bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
  788.  top y8=max(top y7l,vround 5/6 bot y4l);
  789.  filldraw stroke z1e{up}....{left}z2e;  % upper arc
  790.  filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e;  % lower arc
  791.  path upper_arc, lower_arc;
  792.  upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
  793.  pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  794.  x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  795.  x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  796.  numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  797.  filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  798.  t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  799.  filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  800. else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
  801.  x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
  802.  top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
  803.  filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  804.  filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  805. % the accent
  806. lowercase_cedilla(x7,0,11,12,13,14,15);
  807. penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar;
  808.  
  809. ecchar "The letter t with hachek"; % from csotherl.mf (csfonts)
  810. %beginchar(oct"264",6u#+max(u#,.5stem#),
  811. % min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0);
  812. beginchar(oct"264",6u#+max(u#,.5stem#),lc_acute_height#,0);
  813. numeric hh';
  814. hh' = min(asc_height,if hefty:9/7 else:10/7 fi\\ x_height);
  815. italcorr lc_acute_height#*slant if serifs: -.9u# else: -.4u# fi;
  816. adjust_fit(0,if serifs: 0 else: -.5u# fi);
  817. numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi);
  818. pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180);
  819. lft x2r=lft x3r=hround(2.5u-.5shaved_stem);
  820. y2=y8; y3=max(.5bar_height,2vair);
  821. pickup crisp.nib; pos8(bar,90);
  822. rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l;
  823. if hefty: pos7(bar,90);
  824.  filldraw stroke z7e--z8e;  % crossbar
  825.  pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0);
  826.  rt x1r=fine.rt x2l; top y1=hh';
  827.  penpos2'(x1r-x1l,0); x2'=x1; y2'=y2;
  828.  filldraw stroke z1e--z2'e;  % upper terminal
  829. else: pos7(vair,90); pos1(hair,0);
  830.  rt x1r=fine.rt x2l; top y1=hh';
  831.  filldraw z1l{down}...{left}z7r--z7l--z8l
  832.   --z8r--(x1r,y8r)--z1r--cycle; fi  % upper terminal and crossbar
  833. pickup fine.nib; interim superness:=more_super;
  834. pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u);
  835. if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l];
  836.  (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]);
  837.  filldraw stroke z2e..super_arc.e(3,4)...{up}z5e;  % stem and hook
  838.  pickup crisp.nib; pos6(hair,0); pos5'(hair,0);
  839.  x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5';
  840.  filldraw stroke z5'e--z6e;  % terminal
  841. else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height];
  842.  x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair;
  843.  filldraw stroke z2e..super_arc.e(3,4);  % stem and hook
  844.  path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e;  % terminal
  845.  if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0):
  846.   filldraw stroke z4e{right}...{up}z5e;
  847.  else: filldraw p; fi fi;
  848. penlabels(1,2,3,4,5,6,7,8);
  849. dtl_hachek(x8)(y1+.5pdot_diam);
  850. endchar;
  851.  
  852. ecchar "The letter cedilla t";
  853. beginchar(oct"265",6u#+max(u#,.5stem#),
  854.  min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0.875desc_depth#);
  855. italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi;
  856. adjust_fit(0,if serifs: 0 else: -.5u# fi);
  857. numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi);
  858. pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180);
  859. lft x2r=lft x3r=hround(2.5u-.5shaved_stem);
  860. y2=y8; y3=max(.5bar_height,2vair);
  861. pickup crisp.nib; pos8(bar,90);
  862. rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l;
  863. if hefty: pos7(bar,90);
  864.  filldraw stroke z7e--z8e;  % crossbar
  865.  pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0);
  866.  rt x1r=fine.rt x2l; top y1=h;
  867.  penpos2'(x1r-x1l,0); x2'=x1; y2'=y2;
  868.  filldraw stroke z1e--z2'e;  % upper terminal
  869. else: pos7(vair,90); pos1(hair,0);
  870.  rt x1r=fine.rt x2l; top y1=h;
  871.  filldraw z1l{down}...{left}z7r--z7l--z8l
  872.   --z8r--(x1r,y8r)--z1r--cycle; fi  % upper terminal and crossbar
  873. pickup fine.nib; interim superness:=more_super;
  874. pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u);
  875. if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l];
  876.  (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]);
  877.  filldraw stroke z2e..super_arc.e(3,4)...{up}z5e;  % stem and hook
  878.  pickup crisp.nib; pos6(hair,0); pos5'(hair,0);
  879.  x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5';
  880.  filldraw stroke z5'e--z6e;  % terminal
  881. else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height];
  882.  x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair;
  883.  filldraw stroke z2e..super_arc.e(3,4);  % stem and hook
  884.  path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e;  % terminal
  885.  if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0):
  886.   filldraw stroke z4e{right}...{up}z5e;
  887.  else: filldraw p; fi fi;
  888. % the accent
  889. lowercase_cedilla(x4,0,9,10,11,12,13);
  890. penlabels(1,2,3,4,5,6,7,8,9,10,1,12,13); endchar;
  891.  
  892. ecchar "The letter u with double acute";
  893. beginchar_twice(oct"266",10u#,x_height#+acc_height#,0);
  894. italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
  895. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  896. numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
  897. if light_vair<fine.breadth: light_vair:=fine.breadth; fi
  898. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  899. pos3(stem,0); pos4(stem',0);
  900. lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r;
  901. if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
  902. else: top y1=x_height; bot y4=0; fi
  903. pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0';
  904. penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
  905. penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
  906. y6=y0=2/3bar_height;
  907. filldraw stroke z1e--z2e;  % left stem
  908. filldraw stroke z3e..z0e--z0'e..z4e;  % right stem
  909. pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
  910. (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
  911. filldraw stroke {{interim superness:=hein_super;
  912.   pulled_arc.e(2',5)}} & z5e{right}...{up}z6e;  % arc
  913. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
  914.  sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
  915.  sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif
  916. if monospace: hpos_corr=-2u; put_accent; hpos_corr=2u; put_accent;
  917. else: hpos_corr=-1.5u; put_accent; hpos_corr=1.5u; put_accent; fi
  918. repeat_once;
  919. penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
  920.  
  921.  
  922. ecchar "The letter circle u";
  923. beginchar(oct"267",10u#,x_height#+acc_height#,0);
  924. italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
  925. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  926. numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
  927. if light_vair<fine.breadth: light_vair:=fine.breadth; fi
  928. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  929. pos3(stem,0); pos4(stem',0);
  930. lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r;
  931. if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
  932. else: top y1=x_height; bot y4=0; fi
  933. pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0';
  934. penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
  935. penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
  936. y6=y0=2/3bar_height;
  937. filldraw stroke z1e--z2e;  % left stem
  938. filldraw stroke z3e..z0e--z0'e..z4e;  % right stem
  939. pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
  940. (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
  941. filldraw stroke {{interim superness:=hein_super;
  942.   pulled_arc.e(2',5)}} & z5e{right}...{up}z6e;  % arc
  943. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
  944.  sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
  945.  sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif
  946. % the accent
  947. lowercase_circle(.5w,(1/3[x_height,h]+apex_o),7,8,9,10);
  948. penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
  949.  
  950.  
  951. ecchar "The letter y with umlaut";
  952. beginchar(oct"270",if serifs:9.5u# else:9u# fi,lc_trema_height#,desc_depth#);
  953. italcorr x_height#*slant+.25u#;
  954. adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#);
  955. numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut;
  956. left_stem=fudged.stem-stem_corr;
  957. right_stem=fudged.hair if hefty:-2stem_corr fi;
  958. bot_stem=fudged.hair if hefty:-8stem_corr fi;
  959. bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi);
  960. outer_jut=.75jut;
  961. x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l;
  962. numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo;
  963. alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr);
  964. alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9);
  965. if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1;
  966. else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi
  967. penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0);
  968. alpha3=(y1++(x2l-x1l))/y1;
  969. penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0);
  970. z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r);
  971. if y0>notch_cut: y0:=notch_cut;
  972.   fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r)
  973.     --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  974.     ...{down}z0+.5left--cycle; % left and right diagonals
  975. else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l
  976.     --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  977. penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d;
  978. if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen;
  979.  penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180);
  980.  x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u;
  981.  fill stroke z3e---z5e...{left}z6e; bulb(6,7,8);  % arc and bulb
  982.  numeric inner_jut; pickup tiny.nib;
  983.  prime_points_inside(1,2); prime_points_inside(4,3);
  984.  if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut;
  985.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  986.  dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut);  % left serif
  987.  dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark);  % right serif
  988. else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo;
  989.  fill stroke z3e---z5e...{left}z6e;  % arc
  990.  pickup fine.nib; pos6'(bot_vair,-90); z6'=z6;
  991.  pos7(2/3[bot_vair,flare],-85);
  992.  lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l;
  993.  filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal
  994. % the accent
  995. lowercase_umlaut(0,0,10,11,12,13);
  996. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
  997.  
  998. ecchar "The letter z with acute"; % from pl_ml (plfonts)
  999. beginchar_twice(oct"271",8u#,x_height#,0);
  1000.  italcorr x_height#*slant-.5serif_fit#-.3u#;
  1001.  adjust_fit(0,.5serif_fit#);
  1002.  numeric arm_thickness[\\],z_stem;
  1003.  if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
  1004.   z_stem=.6[vair,stem];
  1005.  else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
  1006.  pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
  1007.  top y1=h; y2=min(y1,h-2/3arm_thickness1);
  1008.  bot y4=0; y3=max(y4,2/3arm_thickness2);
  1009.  numeric alpha; 
  1010.  alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
  1011.  penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
  1012.  penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
  1013.  pair delta; delta=penoffset z3-z2 of currentpen;
  1014.  fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
  1015.   ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
  1016.   ---cycle;  % diagonal
  1017.  pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
  1018.  top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
  1019.  arm(5,6,a,beak_darkness,-.4beak_jut);  % upper arm and beak
  1020.  pos7(arm_thickness2,-90); pos8(hair,0);
  1021.  bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
  1022.  arm(7,8,b,beak_darkness,.6beak_jut);  % lower arm and beak
  1023.  penlabels(1,2,3,4,5,6,7,8);
  1024.  hpos_corr=-.5u; put_accent;
  1025. repeat_once;
  1026. endchar;
  1027.  
  1028. ecchar "The z with hachek"; % from cshachel.mf (csfonts)
  1029. beginchar(oct"272",8u#,lc_hachek_height#,0);
  1030. italcorr x_height#*slant-.5serif_fit#-.3u#;
  1031. adjust_fit(0,.5serif_fit#);
  1032. numeric arm_thickness[],z_stem;
  1033. if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
  1034.  z_stem=.6[vair,stem];
  1035. else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
  1036. pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
  1037. top y1=x_height; y2=min(y1,x_height-2/3arm_thickness1);
  1038. bot y4=0; y3=max(y4,2/3arm_thickness2);
  1039. numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
  1040. penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
  1041. penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
  1042. pair delta; delta=penoffset z3-z2 of currentpen;
  1043. fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
  1044.  ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
  1045.  ---cycle;  % diagonal
  1046. pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
  1047. top y5r=x_height; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
  1048. arm(5,6,a,beak_darkness,-.4beak_jut);  % upper arm and beak
  1049. pos7(arm_thickness2,-90); pos8(hair,0);
  1050. bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
  1051. arm(7,8,b,beak_darkness,.6beak_jut);  % lower arm and beak
  1052. penlabels(1,2,3,4,5,6,7,8);
  1053. lc_hachek_accent(1/2[x6r,x1r]);
  1054. endchar;
  1055.  
  1056. ecchar "The letter z with dot above"; % from pl_ml (plfonts)
  1057. beginchar_twice(oct"273",8u#,x_height#,0);
  1058.  italcorr x_height#*slant-.5serif_fit#-.3u#;
  1059.  adjust_fit(0,.5serif_fit#);
  1060.  numeric arm_thickness[\\],z_stem;
  1061.  if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
  1062.   z_stem=.6[vair,stem];
  1063.  else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
  1064.  pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
  1065.  top y1=h; y2=min(y1,h-2/3arm_thickness1);
  1066.  bot y4=0; y3=max(y4,2/3arm_thickness2);
  1067.  numeric alpha;
  1068.  alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
  1069.  penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
  1070.  penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
  1071.  pair delta; delta=penoffset z3-z2 of currentpen;
  1072.  fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
  1073.   ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
  1074.   ---cycle;  % diagonal
  1075.  pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
  1076.  top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
  1077.  arm(5,6,a,beak_darkness,-.4beak_jut);  % upper arm and beak
  1078.  pos7(arm_thickness2,-90); pos8(hair,0);
  1079.  bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
  1080.  arm(7,8,b,beak_darkness,.6beak_jut);  % lower arm and beak
  1081.  penlabels(1,2,3,4,5,6,7,8);
  1082.  put_dot(tiny,max(dot_size#,cap_curve#));
  1083. repeat_once;
  1084. endchar;
  1085.  
  1086. ecchar "The letter ij";
  1087. beginchar(oct"274",10.5u#,min(asc_height#,10/7x_height#+.5idot_diam#),desc_depth#);
  1088. italcorr h#*slant-serif_fit# + .5idot_diam# -2u#;
  1089. % adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#);
  1090. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  1091. if odd(w-stem'): change_width; fi
  1092. lft x1l=hround(.25w-.5stem'); x1=x2;
  1093. top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0;
  1094. filldraw stroke z1e--z2e;  % stem
  1095. pos3(idot_diam,0); pos4(idot_diam,90);
  1096. if serifs: x3r=max(x1r,x1+.5(idot_diam-tiny)-.2jut) else: x3=x1-.5 fi;
  1097. top y4r=h+1;
  1098. if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi
  1099. x3=x4; y3=.5[y4l,y4r]; dot(3,4);  % dot
  1100. if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop);  % upper serif
  1101.  dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi  % lower serif
  1102. %
  1103. adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi,
  1104.  serif_fit#-2stem_shift# if monospace:-.5u# fi);
  1105. pickup tiny.nib; pos11(stem',0); pos12(stem',0);
  1106. rt x11r=hround(.75w+.25u+.5stem'); x11=x12;
  1107. top y11=x_height if serifs: +min(oo,serif_drop) fi; bot y12=-1/3d;
  1108. filldraw stroke z11e--z12e;  % stem
  1109. pos13(idot_diam,0); pos14(idot_diam,90);
  1110. x13r=x11r; top y14r=h+1;
  1111. if bot y14l-top y11<slab: y14l:=min(y14r-eps,y11+tiny+slab); fi
  1112. x13=x14; y13=.5[y14l,y14r]; dot(13,14);  % dot
  1113. if serifs: sloped_serif.l(11,12,aa,1/3,1.1jut,serif_drop);  % upper serif
  1114.  pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180);
  1115.  x15=.5[x12,x16r]; bot y15r=-d-oo; y16-.5flare=-.88d;
  1116.  if monospace: lft x16r=.5w else: z16r=z17r; rt x17l=.5w+floor .75u fi;
  1117.  (x,y15r)=whatever[z15l,z12l]; x15r:=max(x,.5[x16r,x15]);
  1118.  filldraw stroke z12e{down}...z15e{left};  bulb(15,16,17); % arc and bulb
  1119. else: pickup fine.nib; pos12'(stem',0); z12'=z12;
  1120.  pos16(.2[vair,stem'],-90); pos17(vair,-90);
  1121.  lft x17r=hround .5w-.75u; bot y17r=vround 5/6(-d-oo);
  1122.  (x,y17l)=whatever[z17r,z13]; x17l:=x;
  1123.  z15r=z12'r; (x12'l,y15l)=whatever[z17l,z15r]; x15l=x12'l; y15=y15r;
  1124.  x16r=.5[x17r,x15r]; x16l:=.5[x17l,x15l]; bot y16r=-d-oo;
  1125.  filldraw stroke z12'e..{down}z15e & super_arc.e(15,16)
  1126.   & z16e{left}..z17e; fi  % arc and terminal
  1127. penlabels(1,2,3,4,5,6,11,12,13,14,15,16,17); endchar;
  1128.  
  1129.  
  1130. endinput;
  1131.